﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace TA.Turbo.Controls
{
	/// <summary>
	/// Specifies when the <see cref="Grid"/> column is visible.
	/// </summary>
	public enum GridColumnVisibility
	{
		/// <summary>
		/// Do not show the column.
		/// </summary>
		None = 0,
		[EditorBrowsable(EditorBrowsableState.Never)]
		Any = 1 << 0,
		/// <summary>
		/// Only show the column in view mode.
		/// </summary>
		ViewMode = Any | 1 << 1,
		/// <summary>
		/// Only show the column in edit mode.
		/// </summary>
		EditMode = Any | 1 << 2,
		/// <summary>
		/// Show the column in all modes.
		/// </summary>
		Always = ViewMode | EditMode,
	}
}
